.TH std::experimental::simd_mask::copy_from 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::simd_mask::copy_from \- std::experimental::simd_mask::copy_from

.SH Synopsis
   template<class Flags>                            (parallelism TS v2)
   void copy_from( const bool* mem, Flags flags );

   The load function replaces all elements of a simd_mask such that the i-th element is
   assigned with mem[i] for all i in the range of [0, size()).

.SH Parameters

   mem   - a pointer into an array where [mem, mem + size()) is a valid range
   flags - if of type vector_aligned_tag, the load constructor may assume mem to point
           to storage aligned by memory_alignment_v<simd_mask>
.SH Type requirements
   -
   is_simd_flag_type_v<Flags> must be true.

.SH See also

   element_aligned_tag flag indicating alignment of the load/store address to element
   element_aligned     alignment
   (parallelism TS v2) \fI(class)\fP
   vector_aligned_tag  flag indicating alignment of the load/store address to vector
   vector_aligned      alignment
   (parallelism TS v2) \fI(class)\fP
   overaligned_tag     flag indicating alignment of the load/store address to the
   overaligned         specified alignment
   (parallelism TS v2) \fI(class template)\fP
   memory_alignment    obtains an appropriate alignment for vector_aligned
   (parallelism TS v2) \fI(class template)\fP
   constructor         constructs a simd_mask object
   (parallelism TS v2) \fI(public member function)\fP
   copy_to             stores simd_mask elements to contiguous memory
   (parallelism TS v2) \fI(public member function)\fP
   copy_from           loads simd elements from contiguous memory
   (parallelism TS v2) \fI(public member function of std::experimental::simd<T,Abi>)\fP

